package com.usian.order.fegin;

import com.usian.order.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * order要调用user【user-service】
 * user【user-service】:/api/user/getUserById/{id}
 * http://localhost:8081/api/user/getUserById/{id}
 *
 * @TODO:
 * @Author:baimu
 * @Date:2024 06 26 09 56
 **/
@FeignClient("user-service")
public interface UserFegin {
    @RequestMapping("/api/user/getUserById/{id}")
    public User getUserById(@PathVariable Integer id);
}
